package btb.ui;

import btb.engine.CEvent;

@SuppressWarnings("serial")
public class CIOEvent extends CEvent
{
	public static final int CIOE_UNDEFINED_EVENT 		= 0;
	public static final int CIOE_GUI_EVENT				= 1;
	public static final int CIOE_KEY_PRESS				= 2;
	public static final int CIOE_KEY_RELEASE			= 3;
	public static final int CIOE_KEY_HELD				= 4;
	public static final int CIOE_MOUSE_LEFT_PRESS		= 5;
	public static final int CIOE_MOUSE_LEFT_RELEASE 	= 6;
	public static final int CIOE_MOUSE_RIGHT_PRESS		= 7;
	public static final int CIOE_MOUSE_RIGHT_RELEASE	= 8;
	
	protected String eventPayload;
	
	public CIOEvent(Object _source, String _payload)
	{
		super(_source);
		
		this.eventType = CIOE_UNDEFINED_EVENT;
		this.eventPayload = _payload;
	}
	
	public CIOEvent(Object _source, int _eventType, String _payload)
	{
		super(_source);
		
		this.eventType = _eventType;
		this.eventPayload = _payload;
	}
	
	public String getEventPayload()
	{
		return this.eventPayload;
	}
}
